package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.YxActivityMapper;
import com.pms.domain.YxActivity;
import com.pms.service.YxActivityService;

@Service
public class YxActivityServiceImpl implements YxActivityService {
	
	@Autowired
	YxActivityMapper yxActivityMapper;

	@Override
	public void insertYxActivity(YxActivity yxActivity) {
		yxActivityMapper.insertSaler(yxActivity);
	}

	@Override
	public YxActivity selectByProductId(String id) {
		return yxActivityMapper.selectByProductId(id);
	}

	@Override
	public void updateByProductId(YxActivity yxActivity) {
		yxActivityMapper.updateByByProductId(yxActivity);
	}

	@Override
	public List<YxActivity> getAll() {
		return yxActivityMapper.getAll();
	}

	@Override
	public void deleteSalerByProductId(String yxProjecId) {
		yxActivityMapper.deleteSalerByProductId(yxProjecId);
	}

}
